/{payment-id}
/dispute
用于解决任何支付争议。
您无法读取此连线,请在父支付对象上使用 disputes
字段。
您可以使用此连线解决争议:
POST /v21.0/{payment-id}/dispute HTTP/1.1
Host: graph.facebook.com
reason=DENIED_REFUND
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->post(
'/{payment-id}/dispute',
array (
'reason' => 'DENIED_REFUND',
),
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
Bundle params = new Bundle();
params.putString("reason", "DENIED_REFUND");
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{payment-id}/dispute",
params,
HttpMethod.POST,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
NSDictionary *params = @{
@"reason": @"DENIED_REFUND",
};
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{payment-id}/dispute"
parameters:params
HTTPMethod:@"POST"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
名称 | 描述 | 类型 |
---|---|---|
| 您要解决此争议的原因。此字段为必要项。 |
|
如果成功,则返回:
{ "success": true }
否则系统会返回相关的错误消息。
您无法使用此连线进行删除。