Guest User

Untitled

a guest
Aug 10th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. request.request_body(
  2. customer_data: {
  3. customer_type: 'MERCHANT',
  4. person_details: {
  5. email_address: 'test@email.com',
  6. name: {
  7. given_name: 'Developer',
  8. surname: 'Example'
  9. }
  10. }
  11. },
  12. requested_capabilities: [
  13. {
  14. capability: 'API_INTEGRATION',
  15. api_integration_preference: {
  16. partner_id: ENV['PAYPAL_MP_PARTNER_ID'],
  17. rest_api_integration: {
  18. integration_method: 'PAYPAL',
  19. integration_type: 'THIRD_PARTY'
  20. },
  21. rest_third_party_details: {
  22. partner_client_id: ENV['PAYPAL_MP_CLIENT_ID'],
  23. feature_list: ['PAYMENT', 'REFUND', 'PARTNER_FEE', 'DELAY_FUNDS_DISBURSEMENT']
  24. }
  25. }
  26. }
  27. ],
  28. web_experience_preference: {
  29. partner_logo_url: static_url('email/zumbini_logo.png'),
  30. return_url: 'return_url'
  31. },
  32. collected_consents: [{
  33. type: 'SHARE_DATA_CONSENT',
  34. granted: true
  35. }],
  36. products: ['EXPRESS_CHECKOUT']
  37. )
Add Comment
Please, Sign In to add comment