我已经通过遵循此文档援助。再加上如何在沙盒上进行测试?
I have implemented PayPal Gift Aid / Donate as a separate SDK by following this documentation PayPal Donate SDK. But how can I add this Donate functionality to regular PayPal payment as a checkbox just like the attached screenshot Donor opt into Gift Aid. Plus how can I test it on sandbox?
发布评论
评论(2)
我相信PayPal按钮是由其API渲染的,我认为没有一种方法可以更改生成的按钮。
就个人而言,我将考虑进行自定义结帐并添加一个单独的复选框,该复选框将触发“捐赠”功能,以在结帐时添加额外的数量。
I believe the Paypal buttons are rendered out by their API, I don't think there is a way to change the button that is generated.
Personally, I would consider doing a custom checkout and adding a separate checkbox that will trigger the "Donate" function to add an extra amount to the checkout.
礼品援助是一种特定于英国的税收调整。当英国付款人捐款时,它已经是捐赠流的一部分。这似乎不是您实际上要问的问题,因此您可能希望澄清。
在到达PayPal之前,您将在自己的网站上添加捐款(非捐赠)结帐,这将作为常规结帐处理总计,也许有某些订单项指示哪些部分是捐赠的。如果这对您不起作用,请使用单独的按钮和交易。
Gift Aid is a UK-specific tax adjustment. It is part of the Donation flow already when UK payers donate. This does not seem to be what your question is actually trying to ask about, so you may wish to clarify.
Adding donations onto a regular (non-donation) checkout of some sort is something you would do on your own site, prior to reaching PayPal, which would process the total as a regular checkout, perhaps with some line item indicating what portion is a donation. If this doesn't work for you, then use separate buttons and transactions.