paypal

Paypal UNSUPPORTED_MEDIA_TYPE

烈酒焚心 提交于 2019-12-20 02:12:24
问题 I am trying to get an access token from paypal's authorization api. When I make post request to the api I get UNSUPPORTED_MEDIA_TYPE i.e. 415 response. Below is the snippet that I used. const auth = await fetch(PAYPAL_OAUTH_API, { method: 'post', headers: { 'Content-Type': 'application/json', 'Authorization': `Basic ${ basicAuth }` }, body: JSON.stringify({"grant_type": "client_credentials"}) }); 回答1: I have fixed my issue by setting Content-Type to application/x-www-form-urlencoded . My

Auto Submitting a form (cURL)

给你一囗甜甜゛ 提交于 2019-12-19 19:58:53
问题 Im writing a form to post data off to paypal, and this works fine, i create the form with hidden fields and then have a submit button that submits everything to paypal. However, when the user clicks that button, there is more that i want to do, for example change their cart status in the database. So, i want to be able to execute some code when they click submit and then post the data to paypal. I dont want to use javascript for this. My method at the moment is using cURL, the form posts back

paypal api: take immediate payment without a shipping address

爱⌒轻易说出口 提交于 2019-12-19 18:57:55
问题 been pulling my hair out for hours on this one... i can't find a way to take an immediate payment via the paypal api without specifying a shipping address. i'm selling tickets that are delivered via email, no shipping is required. there is info out there specifying you have to create a 'web experience profile'. however, one i can't find out how to pass the 'WebProfile()' to the payment and two, it's not what i want to do because the user then has to return the host website to authorise taking

pay with paypal details without redirecting to paypal site

☆樱花仙子☆ 提交于 2019-12-19 10:21:46
问题 Can I make payment with paypal details using paypal id and password without redirecting to paypal site? I want to do all payment process without leaving my website. Thanks 回答1: You can by using PayFlow but the point of redirecting to paypal is to make sure the payment is secure, not doing so might put your customers off and you'll have to focus time on locking down your payment page. Payflow overview Full payflow developer guide. 来源: https://stackoverflow.com/questions/15494439/pay-with

ios paypal simple payment with multiple objects

徘徊边缘 提交于 2019-12-19 10:07:07
问题 UPDATED CODE thanks to ragnesh I am able to do multiple items payment but without a discount, i needed a 10% discount on each product, can anyone help regarding this? - (void)simplePayment { [PayPal getPayPalInst].shippingEnabled = TRUE; [PayPal getPayPalInst].dynamicAmountUpdateEnabled = TRUE; [PayPal getPayPalInst].feePayer = FEEPAYER_EACHRECEIVER; PayPalPayment *payment = [[PayPalPayment alloc] init]; payment.recipient = @"email@example.com"; payment.paymentCurrency = @"USD"; payment

Getting “apple mach-o linker id error undefined symbols for architecture i386” when implement a Library in iOS5

冷暖自知 提交于 2019-12-19 09:43:47
问题 I'm having troubles to implement the PayPal Library in XCode 4. I get this error when I try to build the project: Undefined symbols for architecture i386: "_xmlParseMemory", referenced from: -[AdaptivePaymentsSOAP11Binding_CancelPreapproval connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o) -[AdaptivePaymentsSOAP11Binding_ConfirmPreapproval connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o) -[AdaptivePaymentsSOAP11Binding_ConvertCurrency

Adding multiple items to a PayPal cart

痴心易碎 提交于 2019-12-19 09:43:12
问题 I have created a class for PayPal that works great for adding single items however I am now trying to get this working as a cart so i can add multiple products and customise the page with my logo. Can anyone provide any examples of how I go about doing this? I have looked around quite a few websites however none of them seem to really explain very well. From what I understand I am doing using PayPal Standard. public static class PayPal { public static string _URLRedirect; public static void

paypal create recurring profile showing the next payment date same as profile start date

拥有回忆 提交于 2019-12-19 08:03:56
问题 The created profile of recurring paypal is showing the next Payment date same as profile start date i think it should show the next payment date to next month, following is the array format that i am sending to create profile. Array ( [0] => [1] => AMT=9.99 [2] => CREDITCARDTYPE=Visa [3] => ACCT=4662886735437488 [4] => EXPDATE=092017 [5] => CVV2=121 [6] => FIRSTNAME=Naeem+Bhatti [7] => LASTNAME= [8] => STREET=my+address+1 [9] => CITY=westchester [10] => STATE=Alabama [11] => ZIP=eq2 [12] =>

PayPal subscriptions PDT / IPN - PLEASE

夙愿已清 提交于 2019-12-19 07:58:14
问题 Am having a lot of trouble getting my head around this paypal payment stuff... How can i confirm that the user has successfully signed up for my subscription? I know 0 about IPN but for example : If a user signs up to my website with example@e.com but uses the paypal account sample@s.com to pay then how to i match up the user. I read that PDT do not send out a transaction ID (tx) for recurring (subscription) payments is that true ? Just need help with it all... honest and easy :) Thanks. 回答1:

PayPal IPN Security

心不动则不痛 提交于 2019-12-19 06:46:32
问题 PayPal IPN sends a POST request with a variable number of fields to the notify URL, in order to confirm that the POST request is legit we need to resubmit the same request along with a additional cmd=_notify-validate field to PayPal, which then replies VERIFIED or INVALID . My question is, why do we need to resend the request to PayPal? Wouldn't something like this suffice? if (preg_match('~^(?:.+[.])?paypal[.]com$~i', gethostbyaddr($_SERVER['REMOTE_ADDR'])) > 0) { // request came from PayPal