Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaned up code #8

Merged
merged 2 commits into from
Sep 23, 2022
Merged

Cleaned up code #8

merged 2 commits into from
Sep 23, 2022

Conversation

reshmabidikar
Copy link
Contributor

Cleaned up code

List<PluginProperty> outputProperties = new ArrayList<PluginProperty>();
outputProperties.add(new PluginProperty("mandateId",mandateId,false)); //arbitrary data to be returned to the caller
outputProperties.add(new PluginProperty("customerId",customerId,false)); //arbitrary data to be returned to the caller
outputProperties.add(new PluginProperty("gocardlessstatus",payment.getStatus(),false)); //arbitrary data to be returned to the caller
GoCardlessPaymentTransactionInfoPlugin paymentTransactionInfoPlugin = new GoCardlessPaymentTransactionInfoPlugin(
kbPaymentId, kbTransactionPaymentId, TransactionType.PURCHASE, new BigDecimal(payment.getAmount()), killBillCurrency,
kbPaymentId, kbTransactionPaymentId, TransactionType.PURCHASE, // In a real-world plugin, set to the appropriate TransactionType
new BigDecimal(payment.getAmount()), killBillCurrency, //TODO, There is a bug here, payment.getAmount() returns the amount in minor units, this needs to be converted
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pierre pierre merged commit 50c6fad into killbill:main Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants