In KillBill, can I associate an given payment with an given invoice?
I want to connect these without creating payment. Is it possible?
If possible, should I use "Trigger a payment for invoice"?
https://killbill.github.io/slate/?java#trigger-a-payment-for-invoice
I tried to "trigger payment of invoice", but a payment was generated. Subsequently, when I pulled the trigger I specified paymentExternalKey of existing payment as paymentExternalKey. But I got the next error.
"Message": "Invalid payment transition PURCHASE from state PURCHASE_SUCCESS"
If it is possible that associating an given payment with an given invoice, I have a some questions.
(If impossible, please ignore)
· Does the status of payment transaction have an impact? It must be in pending state, etc.
·Should I use “Trigger a payment for invoice”?
If so, can you show me the sample how to specify the following parameters?
If not, could you please advise me?
parameters of "Trigger a payment for invoice"
{
"targetInvoiceId": "string",
"accountId": "string",
"paymentId": "string",
"paymentNumber": "string",
"paymentExternalKey": "string",
"authAmount": 0,
"capturedAmount": 0,
"purchasedAmount": 0,
"refundedAmount": 0,
"creditedAmount": 0,
"currency": "string",
"paymentMethodId": "string",
"transactions": [
{
"transactionId": "string",
"transactionExternalKey": "string",
"paymentId": "string",
"paymentExternalKey": "string",
"transactionType": "AUTHORIZE",
"amount": 0,
"currency": "AED",
"effectiveDate": "2018-07-11T08:36:35.603Z",
"processedAmount": 0,
"processedCurrency": "string",
"status": "SUCCESS",
"gatewayErrorCode": "string",
"gatewayErrorMsg": "string",
"firstPaymentReferenceId": "string",
"secondPaymentReferenceId": "string",
"properties": [
{
"key": "string",
"value": "string",
"isUpdatable": false
}
],
"auditLogs": [
{
"changeType": "string",
"changeDate": "2018-07-11T08:36:35.603Z",
"changedBy": "string",
"reasonCode": "string",
"comments": "string",
"userToken": "string"
}
]
}
],
"paymentAttempts": [
{
"accountId": "string",
"paymentMethodId": "string",
"paymentExternalKey": "string",
"transactionId": "string",
"transactionExternalKey": "string",
"transactionType": "AUTHORIZE",
"effectiveDate": "2018-07-11T08:36:35.603Z",
"stateName": "string",
"amount": 0,
"currency": "AED",
"pluginName": "string",
"pluginProperties": [
{
"key": "string",
"value": "string",
"isUpdatable": false
}
],
"auditLogs": [
{
"changeType": "string",
"changeDate": "2018-07-11T08:36:35.603Z",
"changedBy": "string",
"reasonCode": "string",
"comments": "string",
"userToken": "string"
}
]
}
],
"auditLogs": [
{
"changeType": "string",
"changeDate": "2018-07-11T08:36:35.603Z",
"changedBy": "string",
"reasonCode": "string",
"comments": "string",
"userToken": "string"
}
]
}
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/3e2c94fb-4bbe-4d59-868e-cbf6d2bd062b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/ca0a3f95-83e9-460c-8b8b-fef482a32204%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/14f102c9-12a0-4808-8d3e-16c32f053e2d%40googlegroups.com.
Stéphane,
Thank you for reply.
Your advice help me.
At last, Please let me question about invoice-payment behaviour.
Does payment reflect on Invoice 's balance if i go through the below process?
1. Generate payment against unpaid invoice (trigger-a-payment-for-invoice )
2. Keep the status of the payment transaction in pending state
3. Later, set status of the payment transaction successful.
I found almost the same question and answer below,
(Question regarding state of unpaid invoice after POST /1.0/kb/paymentTransactions
https://groups.google.com/forum/#!searchin/killbilling-users/invoice$20payment$20pending%7Csort:relevance/killbilling-users/lj-MumZaHVs/7R3gQajTAwAJ )
but I did not know if this was trigger-a-payment-for-invoice issue, so I asked a question.
Thanks,
Takeshi
2018年7月19日木曜日 2時00分33秒 UTC+9 stephane brossier:
> Takeshi,
>
>
> We don't have a way to link an arbitrary existing Payment to an existing (unpaid) Invoice.
>
> However, at the time you create the Payment, you can specify that this Payment is for a particular (unpaid) Invoice. The api is described here.
>
>
>
> Let me know if that helps,
>
>
> Stéphane
>
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/0b8d71f7-fbaf-4663-ab9b-6d4cca67df1f%40googlegroups.com.