Graph API Version

User Payment Methods Info

Reading

Information regarding existing payment methods and new payment methods that can be added by user.

Examples

Graph API Explorer
GET v2.10/...?fields={fieldname_of_type_UserPaymentMethodsInfo} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '...?fields={fieldname_of_type_UserPaymentMethodsInfo}'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "...?fields={fieldname_of_type_UserPaymentMethodsInfo}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_UserPaymentMethodsInfo}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"...?fields={fieldname_of_type_UserPaymentMethodsInfo}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

NameDescription
account_id
int64

Ad Account id for which the information is being queried.

country_code
string

The country code of the country the user belongs to.

extra_data
JSON-encoded string

The extra data which is needed by specific products.

nmor_order_type
enum{unknown, none, pages_commerce, nmor_pages_commerce, component_flow, business_platform_commerce, synchronous_component_flow, event_ticketing, platform_self_serve, messenger_platform, messenger_omnim, billing_engine, tip_jar, instant_experiences, buy_on_facebook, payment_app, donation_p4p, whatsapp_p2p, p2p, mobile_top_up, shipping_label, marketplace_dropoff, pages_solution, blackbaud_rwr_donation, instagram_p2b, marketplace_shipping}

The nmor order type for which this information is being queried.

payment_type
enum{none, ads_invoice, donations, facebook_shop, oculus_cv1, oculus_launch_v1, oculus_launch_v2, ozone, open_graph_product, messenger_commerce, p2p_transfer, dummy_first_party, dummy_third_party, gifts, bill, airmail, event_ticketing, payment_lite, messenger_api_fee, workplace, nmor_pages_commerce}

The payment type for which this information is being queried.

Fields

FieldDescription

account_id

string

The user's payment account ID

available_card_types

list<enum>

The type of cards the user can add e.g. Visa, JCB) .

available_payment_methods

list<string>

The type of Payment Methods the user can add (Paypal, Credit/Debit Cards).

available_payment_methods_details

list<BaseNmorPaymentMethod>

The detail information about nmor payment methods the user can add

country

string

The payment country for the user.

currency

string

The user's currency as set in Payment Settings

existing_payment_methods

list<PaymentMethod>

The payment methods user already has on file

Edges

No edges

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.